﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CM0010P01.aspx.vb" Inherits="Tohto.CM0010P01" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="Tohto.Base.CustomControl" Namespace="Tohto.Base.CustomControl" TagPrefix="cc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>業務システム</title>
  <link href="Styles/Site.css" rel="stylesheet" type="text/css" />
  <link href="Styles/page.css" rel="stylesheet" type="text/css" />
  <link href="Styles/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" />
  <link href="Styles/Calendar.css" rel="stylesheet" type="text/css" />
  <script src="Scripts/jquery-1.8.0.js" type="text/javascript"></script>
  <script src="Scripts/jquery-ui-1.8.12.custom.min.js" type="text/javascript"></script>
  <script src="Scripts/check.js" type="text/javascript"></script>
  <script src="Scripts/common.js" type="text/javascript" charset="shift-jis"></script>
  <script type="text/javascript">
    $(document).ready(function () {
      DoReady();
    });

    function DoReady() {

    }

    function Login() {
      return InputCheck()
    }

    /* チェック */
    function InputCheck() {

      var emp_cd = $("#<%=txt_emp_cd.ClientId %>");

      //社員CD
      if (checkNull(emp_cd.val())) {
        ShowMsgDialog("CME0041", '', '', '', '');
        $("#<%=txt_emp_cd.ClientId %>").addClass("errorRed");
        emp_cd.focus();
        return false;
      } else {
        $("#<%=txt_emp_cd.ClientId %>").removeClass("errorRed");
      }

      //パスワード
      var psw = $("#<%=txt_psw.ClientId %>");

      if (checkNull(psw.val())) {
        ShowMsgDialog("CME0042", '', '', '', '');
        $("#<%=txt_psw.ClientId %>").addClass("errorRed");
        psw.focus();
        return false;
      } else {
        $("#<%=txt_psw.ClientId %>").removeClass("errorRed");
      }

    }

    /* ユーザーIDロストフォッカス */
    function txt_emp_cd_TextChanged() {
      return true;
    }
    /* 終了ボタンクリック */
    function Closewin() {
      if (ShowMsgDialog("CMQ0006", '業務システム', '', '') == true) {
        window.open('', '_parent', '');
        window.close();
      } else {
        return false;
      }
    }
  </script>
</head>
<body>
  <form id="form1" runat="server">
  <asp:ToolkitScriptManager ID="scmMain" runat="server" EnableScriptGlobalization="True" AsyncPostBackTimeout="0"
    EnableScriptLocalization="True">
  </asp:ToolkitScriptManager>
  <div style="height: 50px">
  </div>
  <div align="center">
    <asp:UpdatePanel ID="upp_main_menu" runat="server">
      <ContentTemplate>
        <table>
          <tr>
            <td class="noborder_left noborder_bottom" width="600px">
              <div align="center">
                <table>
                  <tr>
                    <td width="30%" align="right" class="noborder_left noborder_bottom">
                      <asp:Image ID="tohto_image" runat="server" ImageUrl="../../Image/TOHTO.jpg" />
                    </td>
                    <td class="noborder_left noborder_bottom">
                      <div class="sub_title">
                        <table>
                          <tr>
                            <td width="350px" class="label_background cm0010p01_td_font cm0010p01_border_top cm0010p01_td_border">
                              業務システム
                            </td>
                            <td class="noborder_bottom">
                            </td>
                          </tr>
                        </table>
                      </div>
                    </td>
                  </tr>
                </table>
              </div>
              <div style="height: 50px">
              </div>
              <div align="center">
                <table>
                  <tr>
                    <td width="80px" class="label_background cm0010p01_text_align_left border_top">
                      ユーザーID
                    </td>
                    <td width="80px" class="cm0010p01_text_align_left border_top">
                      <asp:TextBox CssClass="cm0010p01_txt_num_70 ime_disabled" TabIndex="100" MaxLength="10"
                        ID="txt_emp_cd" runat="server" Text="9999999999" AutoPostBack="true" onblur="return txt_emp_cd_TextChanged()"></asp:TextBox>
                    </td>
                    <td width="200px" class="noborder_bottom">
                    </td>
                  </tr>
                  <tr>
                    <td colspan="3" class="noborder_left noborder_bottom">
                    </td>
                  </tr>
                  <tr>
                    <td class="label_background cm0010p01_text_align_left border_top">
                      パスワード
                    </td>
                    <td class="cm0010p01_text_align_left border_top">
                      <asp:TextBox CssClass="cm0010p01_txt_num_70 ime_disabled" TabIndex="105" MaxLength="10"
                        ID="txt_psw" runat="server" Text="" TextMode="Password"></asp:TextBox>
                    </td>
                    <td class="noborder_bottom">
                    </td>
                  </tr>
                  <tr>
                    <td colspan="3" class="noborder_left">
                    </td>
                  </tr>
                  <tr>
                    <td class="label_background cm0010p01_text_align_left border_top">
                      部署
                    </td>
                    <td colspan="2" class="border_right white_td">
                      <cc:ReadOnlyDropDownList ID="rddl_post" TabIndex="110" runat="server" ReadOnlyWidth="-2"
                        CssClass="cm0010p01_rddl_270">
                        <asp:ListItem Selected="true" Text="ＮＮＮＮＮＮＮＮＮ２５ＮＮＮＮＮＮＮＮ"></asp:ListItem>
                        <asp:ListItem Text="ＮＮ"></asp:ListItem>
                        <asp:ListItem Text="ＮＮＮＮＮＮ"></asp:ListItem>
                        <asp:ListItem Text="ＮＮＮＮＮＮＮＮＮ"></asp:ListItem>
                        <asp:ListItem Text="ＮＮＮＮＮＮＮＮＮ２０ＮＮＮ"></asp:ListItem>
                        <asp:ListItem Text="ＮＮＮＮＮＮＮＮＮ２０ＮＮＮＮＮＮＮＮＮ" Value="1001"></asp:ListItem>
                      </cc:ReadOnlyDropDownList>
                    </td>
                  </tr>
                </table>
              </div>
              <div style="height: 30px">
              </div>
              <div>
                <table width="100%">
                  <tr>
                    <td class="noborder_left noborder_bottom">
                      <div class="button_float_right">
                        <div>
                          <asp:Button ID="btn_login" TabIndex="115" runat="server" Text="ログイン" OnClientClick="return Login();" />
                        </div>
                      </div>
                    </td>
                    <td width="50" class="noborder_left noborder_bottom">
                    </td>
                    <td class="noborder_left noborder_bottom">
                      <div class="button_float_left">
                        <div>
                          <asp:Button ID="btn_close" TabIndex="120" runat="server" Text="終了" OnClientClick="return Closewin();" />
                        </div>
                      </div>
                    </td>
                  </tr>
                </table>
              </div>
            </td>
          </tr>
        </table>
      </ContentTemplate>
    </asp:UpdatePanel>
  </div>
  </form>
</body>
</html>
